From: Alessandro Bono Date: Mon, 24 Oct 2022 07:37:27 +0000 (+0200) Subject: environment: Set time zero when animations are disabled X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~278 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7bd98f3f5fb7e0d1220646b8a4ee7073534a8e8f;p=gnome-shell.git environment: Set time zero when animations are disabled In commit ee09c5c85312f571e14abe69bb6674a361c16d65 we chose to pick the minimum value in order to preserve 0 instead of replacing it with 1. While returning 0 unconditionally when animations are disabled seems the more logic thing to do, we were unsure about possible side effects. Do the change now. Since we are early in the development cycle we should be able to deal with side effects (if any) on time for the next release. Part-of: --- diff --git a/js/ui/environment.js b/js/ui/environment.js index 8c790da67..5895031c6 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -464,7 +464,7 @@ function adjustAnimationTime(msecs) { let settings = St.Settings.get(); if (!settings.enable_animations) - return Math.min(msecs, 1); + return 0; return settings.slow_down_factor * msecs; }